<?php

/*
 * This is to insert new allergy details.
 */
include '../../include/config.php';
mysql_query("INSERT INTO `me_user_allergies` (`sr`, `uid`, `alg_name`, `alg_detail`) VALUES (NULL, '".$_COOKIE['gid']."', '".$_POST['alg_name']."', '".$_POST['alg_detail']."');") or die(mysql_error());
header('Location:../view/Allergies');
?>
